


from tkinter import*
print("масштаб")
N = int(input())
print("введите сдвиг по X")
X = int(input())
print("введите сдвиг по Y")
Y = int(input())
if N == 0 and X>=0 and X<=500 and Y>=0 and Y<=500:
    pass
else:
    if N > 0 and 0*N+X>=0 and 0*N+Y>=0 and 20*N+X<=500 and 30*N+Y<=500:
        pass
    else:
        if N < 0 and 20*N+X>=0 and 30*N+Y>=0 and 0*N+X<=500 and 0*N+Y<=500:
            pass
        else:
            print('Размер фигуры превышает максимальный размер поля')
            exit()
coords = [0 * N + X, 0 * N + Y,
          10 * N + X, 0 * N + Y,
          10 * N + X, 10 * N + Y,
          20 * N + X, 10 * N + Y,
          20 * N + X, 0 * N + Y,
          30 * N + X, 0 * N + Y,
          30 * N + X, 20 * N + Y,
          0 * N + X, 20 * N + Y]
root = Tk()
root.title("LOL")
root.geometry("500x500")
canvas = Canvas(bg="white" , width=500, height=500)
canvas.pack(anchor=CENTER, expand=1) 
canvas.create_polygon(coords)
root.mainloop()
